package client.handler;

import client.Client;
import unit.response.AddedToContactListMessage;
import unit.response.Response;

/**
 * @author Yuri Denison
 * @since 08.08.11
 */
public class AddedToContactListMessageHandler extends AbstractResponseHandler {
    public AddedToContactListMessageHandler(Client client) {
        super(client);
    }

    @Override
    public void handleRequest(Response response) {
        client.clientInterface.addToContactList(((AddedToContactListMessage) response).getUserId());
    }
}
